<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">
  <title>File Server</title>
  <style>
  * {
    box-sizing: border-box;
  }
  button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }
  #data {
    margin: 20px 0;
    padding: 10px 0;
  }

  #data table {
    border: 1px solid #ccc;
    width: 100%;
  }
  #data table td, #data table th {
    border-bottom: 1px solid #ccc;
  }
  .clear{
    zoom:1;
  }
  .clear:after{
    content:"";
    height:0;
    visibility:hidden;
    clear:both;
    display:block;
  }
  </style>
</head>

<body>
  <div style="width:500px;margin:0 auto;padding-top:60px;font-size:18px;font-weight:bold">
    <iframe style="display: none" name="up-result" src="about:blank"></iframe>
    <form action="/cgi-bin/upload.exe" method="post" enctype="multipart/form-data" target="up-result">
      <input name="callback" type="hidden" value="UploadSuccess" />
      <div class="clear">
        <input style="float:left" type="file" name="upfile" multiple="multiple" />
        <input style="float:right" type="submit" value="Upload" />
      </div>
      <textarea name="scrapbook" style="width:100%;min-height:100px;resize:vertical"></textarea> 
    </form>
  </div>
  
  <div style="width:500px;margin:0 auto;font-size:18px;font-weight:bold">
    <h3>File list:</h3>
    <ul id="data">
      <table>
        <tr>
          <th>Name</th>
        </tr>
        <!-- attachmentlist -->
      </table>
    </ul>
  </div>
  
  <script>
    function UploadSuccess() {
      
    }
  </script>
</body>

</html>
